package com.gupaoedu.sentinel.sentinelweb;

import com.gupaoedu.sentinel.SentinelService;
import org.apache.dubbo.config.annotation.DubboReference;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class SentinelController {

    @DubboReference(timeout = 3000)
    SentinelService sentinelService;//proxy$0

    @GetMapping("/say")
    public String sayHello() {
        return sentinelService.sayHello("test");
    }
}
